import http from "./http";

export default {
  //账号密码登入
  accountLogin(params) {
    return http.post("/member/users/login", params);
  },
  //手机号登入
  phoneLogin(params) {
    return http.post("/member/users/phone-login", params);
  },
  //获取手机验证吗
  smsCaptcha(params) {
    return http.post("/openapi/sms-verification", params);
  },

  //会员登入验证选项:1-数字验证码, 2-滑块, 3-关闭
  getCodeType() {
    return http.get("/member/getCodeType");
  },
  //注册
  register(params) {
    return http.post("/member/users/register", params);
  },
  //找回密码
  retrievePassword(params) {
    return http.post("/member/users/retrieve-password", params);
  },
};
